Function |split

std/text/compose::|split


Usage

|split(text, delimiter, inclusive)

Parameters

↳ text: string
↳ delimiter: string
↳ inclusive: bool

Return

↴ Vec<string>


Split strings with delimiter.

text is splitted as Vec<string> according to delimiter.

  • inclusive: set if the delimiter must be kept at the end of splitted strings (if present).